'use strict';

/**
 * @ngdoc directive
 * @name jgappApp.directive:flowRemind
 * @description
 * # flowRemind
 */
angular.module('jgappApp')
  .directive('flowRemind', function (DataService,openApi,Util) {
    return {
      template: '<div class="btn" ng-click="remind()">提醒审批</div>',
      restrict: 'AE',
      link: function postLink(scope, element, attrs) {
       scope.remind=function(){
         var param={};
         param.processInstanceId=attrs.id;
         DataService.getData(openApi.sendAduitNotice,param).then(function(data){
           Util.Toast(data);
         })
       }
      }
    };
  });
